<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

namespace APPS\NEWSPAPER\CONTROLLERS;

use T4\Meta;
use APPS\NEWSPAPER\MODELS\Issue;

class Issues extends \T4\Controller {
    
    public function actionOne() {
        $issue = Issue::findOneByNumber($this->parameters->number);
        Meta::setTitle('№' . $issue->number);
        $this->view->assign('issue', $issue);
        return $this->view->render('issue.html');
    }
    
}